	<fieldset>
		<legend>Recently finished processes</legend>

<?php if (isset($processes) && count($processes) != 0): ?>

		<table>
			<tr>
				<th>Process name</th>
				<th>Started by</th>
				<th>Start date</th>
				<th>End date</th>
				<th></th>
			</tr>

<?php foreach ($processes as $process): ?>

			<tr>
				<td><?php echo $process['process_name'] ?></td>
				<td><?php echo $process['firstname'] ?> <?php echo $process['surname'] ?></td>
				<td><?php echo $process['start_date'] ?></td>
				<td><?php echo $process['end_date'] ?></td>
				<td><a href="<?php echo site_url('home/process_details/' . $process['process_instance_id']) ?>">View details</a></td>
			</tr>

<?php endforeach; ?>

		</table>
		
<?php else: ?>
		<p>None...</p>
<?php endif; ?>

	</fieldset>
